package io.acna.basedao.mybatis.dao;

import io.acna.basedao.mybatis.core.QueryCondition;
import io.acna.basedao.mybatis.core.RowBound;

import com.github.pagehelper.Page;

public interface IBaseMapper<T> {

	int deleteByPrimaryKey(Long id);

	int insert(T entity);

	int insertSelective(T entity);

	T selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(T entity);

	int updateByPrimaryKey(T entity);

	Page<T> searchList(RowBound bound, QueryCondition condition);
}
